package com.taiji.oauth2.clientb.resources;


import org.springframework.boot.autoconfigure.security.oauth2.client.EnableOAuth2Sso;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

@RestController
public class ClientBResources {

    @GetMapping("/user")
    public Object getUserInfo(Principal principal){
        return principal;
    }


}
